package com.beiye.drivertransport.utils;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.beiye.drivertransport.R;

/**
 * Created by ky on 2018/1/8.
 */

public class CustomDialog extends Dialog {

    private int time;
    private TextView tv_time;

    public CustomDialog(Context context,int time) {
        super(context);
        this.time=time;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.countdown_dialog);
        tv_time = (TextView) findViewById(R.id.dialog_time);
        tv_time.setText(time+"");
    }
}
